#include <stdio.h>
int main(int argc, char const *argv[])
{
	int c,q=1;
	while((c=getchar())!=EOF) {
		if (c == '"')
		{
			printf("%s", q ? "``" : "''");
			q!=q;
		}else printf("%c\n", c);
	}
	return 0;
}